<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'enableAjaxValidation'=>false,
	'method'=>'get',
)); ?>

	<div class="row">
		<?php echo $form->label($model,'course_id'); ?>
        <?php
		//$courses = new CDbCriteria(); 
		//$courses->order = 'name ASC';
		//$courses->condition = 'status=1';
		echo $form->dropDownList($model,'id',CHtml::listData(Courses::model()->findAll(), 'id', 'name'), array('prompt'=>'All'));
		?>
		<?php echo $form->error($model,'id'); ?>
        
	</div>
	<div class="row">
        <?php echo $form->label($model,'email'); ?>
		<?php echo $form->textField($model,'email',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>
	<div class="row">
		<?php echo $form->label($model,'nric'); ?>
		<?php echo $form->textField($model,'nric',array('size'=>10,'maxlength'=>10)); ?>
	</div>
	<div class="row buttons">
		<?php echo CHtml::submitButton('Search'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->